﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Bophan.ascx.cs" Inherits="cms_Admin_Danhmuc_Bophan" %>
<asp:UpdatePanel ID="upe" runat="server">
<ContentTemplate>
<div class="titad">QUẢN TRỊ DANH SÁCH BỘ PHẬN</div>
<asp:Panel ID="pnDanhsach" runat="server">
<div class="add">
    <asp:DropDownList ID="drlChucvusearch" runat="server" 
        style="font-family: Arial; font-size: 10pt" AutoPostBack="True" 
        onselectedindexchanged="drlChucvusearch_SelectedIndexChanged">
    </asp:DropDownList>
    </div>
<div class="add">
    <asp:LinkButton CssClass="addnew" id="lbtinsertadv" runat="server" 
        ToolTip="Thêm mới tiêu chí" onclick="lbtinsertadv_Click">Thêm mới</asp:LinkButton>&nbsp;
    <asp:Label ID="lblThongbao" runat="server" 
        style="font-family: Tahoma; font-size: 8pt; color: #FF0000"></asp:Label>
</div>
<table class="Tableadmins" width="100%" border="1">
<tr class="Headadmin" style="height:25px">
    <td style="width:4%" class="contentadmin">No</td>
    <td class="contentadmin">Bộ phận</td>
    <td style="width:15%" class="contentadmin">Phòng ban</td>
    <td style="width:8%" class="contentadmin">Thứ tự</td>
    <td style="width:10%" class="contentadmin" colspan="2">Chức năng</td>
</tr>
<asp:Repeater ID="rptDanhsach" runat="server" onitemcommand="rptDanhsach_ItemCommand">
<ItemTemplate>
<tr style="height:20px" class="tr_while" onmouseover="this.className='tr_while_over'" onmouseout="this.className='tr_while'">
    <td align="center" class="contentadmin"><asp:Label ID="lblorder" runat="server"></asp:Label></td>
    <td align="left" style="padding-left:5px" class="contentadmin"><%#DataBinder.Eval(Container.DataItem, "Name")%></td>
    <td align="left" style="padding-left:5px" class="contentadmin"><%#DataBinder.Eval(Container.DataItem, "pId")%></td>
    <td align="center" style="padding-right:2px" class="contentadmin"><%#DataBinder.Eval(Container.DataItem, "Ord")%></td>
    <td style="width:5%" align="center" class="atd"><asp:LinkButton CssClass="edit" ID="LinkButton1" Runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"ID")%>' CommandName="Edit" ToolTip="Sửa">Sửa</asp:LinkButton></td>
    <td style="width:5%" align="center" class="atd"><asp:LinkButton CssClass="delete" ID="lbt2" Runat="server" OnLoad="Delete" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"ID")%>' CommandName="Delete" ToolTip="Xoá">Xóa</asp:LinkButton></td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
</asp:Panel>
<asp:Panel ID="pnUpdate" Visible="false" runat="server">
<div style="height:10px"></div>
<table class="Tables">
        <tr>
            <td class="leftadd">
                <asp:Label ID="Label8" runat="server" CssClass="labadd" Text="Phòng ban:"></asp:Label>
            </td>
            <td class="lerightadd">
                <asp:DropDownList ID="drlChucvu" runat="server" 
                    style="font-family: Arial; font-size: 10pt">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="leftadd">
                <asp:Label ID="Label1" runat="server" CssClass="labadd" 
                    Text="Bộ phận:"></asp:Label>
            </td>
            <td class="lerightadd">
                <asp:TextBox ID="txtTieuchi" runat="server" CssClass="texadd" Width="300px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="leftadd">
                <asp:Label ID="Label7" runat="server" CssClass="labadd" Text="Thứ tự:"></asp:Label>
            </td>
            <td class="lerightadd">
                <asp:DropDownList ID="drlThutu" runat="server" 
                    style="font-family: Tahoma; font-size: 9pt; color: #000000">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="leftadd">
                &nbsp;</td>
            <td class="lerightadd">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="leftadd" 
                style="background: #e4e7d2; height: 28px; padding-top: 4px; padding-bottom: 4px">
                &nbsp;</td>
            <td class="lerightadd" 
                style="background: #e4e7d2; height: 28px; padding-top: 4px; padding-bottom: 4px">
                <asp:LinkButton ID="lbtCapnhat" runat="server" CssClass="update" 
                    onclick="lbtCapnhat_Click">Cập nhật</asp:LinkButton>
                <asp:LinkButton ID="lbtTrolai" runat="server" CssClass="back" 
                    onclick="lbtTrolai_Click">Trở lại</asp:LinkButton>
                &nbsp;
                <asp:Label ID="lblLoi" runat="server" 
                    style="font-family: Tahoma; font-size: 8pt; color: #FF0000"></asp:Label>
            </td>
        </tr>
    </table>
 </asp:Panel>
 </ContentTemplate>
</asp:UpdatePanel>